/**
 * 行政老师路由
 */

const express = require('express')

// 行政Router
const XingZhengRouter = express.Router({
	mergeParams: true
})

/**
 * 实习相关接口
 */

// 导出实习学生的数据
XingZhengRouter.post('/student/export', require('./xingzheng/internship/exportStudent'))

// 删除实习年度的学生
XingZhengRouter.post('/student/del', require('./xingzheng/internship/del'))

//  删除岗位
XingZhengRouter.post('/company/del', require('./xingzheng/jobs/delJobs'))

// 修改岗位详情
XingZhengRouter.post('/company/update', require('./xingzheng/jobs/updateJobs'))

// 添加岗位至年度
XingZhengRouter.post('/company/add', require('./xingzheng/jobs/addJobs'))

//  向实习年度添加学生
XingZhengRouter.post('/internship/addstudent', require('./xingzheng/internship/addInternshipStudent'))

//  获取实习学生列表
XingZhengRouter.get('/internship/studentlist', require('./xingzheng/internship/internshipStudentList'))

// 获取报名某岗位的学生列表
XingZhengRouter.get('/internship/getStudentsByCompany', require('./xingzheng/internship/getStudentsByCompany'))

// 锁定和解锁未报名学生
XingZhengRouter.post('/internship/lock', require('./student/job/lockStudent'))

/**
 * 入所相关接口
 */

//  删除入所学生
XingZhengRouter.post('/student/del_topic', require('./xingzheng/student/del'))

// 想入所年度插入学生
XingZhengRouter.post('/topic/addstudent', require('./xingzheng/student/addStudentToTopic'))

// 获取入所学生列表
XingZhengRouter.get('/reaserchstudentlist', require('./xingzheng/student/getlist'))

// 导出研究课题
XingZhengRouter.get('/topics/export', require('./xingzheng/topic/exportTopics'))

// 导出学生入所情况
XingZhengRouter.get('/topicsStudents/export', require('./xingzheng/student/exportStudents'))

/**
 * 年度相关接口
 */

//  update year
XingZhengRouter.post('/year/update', require('./xingzheng/year/update'))

// del a year
XingZhengRouter.post('/year/del', require('./xingzheng/year/del'))

// add a year
XingZhengRouter.post('/year/add', require('./xingzheng/year/add'))

// get year list
XingZhengRouter.get('/year/getlist', require('./xingzheng/year/list'))




module.exports = XingZhengRouter